import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;


public class Teset {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MyList1<String> m = new MyList1<String>();
		m.add("String");
		m.add("Object");
		String s = m.get(0);
		System.out.println(s);

	}

}


class MyList1<T>{
	
	private Object[] arr ;
	private int size;
	
	MyList1(){
		arr = new Object[10];
	}
	
	public boolean add(T element){
		arr[size++] = element;
		return true;
	}
	
	public T get(int index){
		return (T)arr[index];
	}
	
	
	
}
